menu button: Revisit style class one more time
authorMatthias Clasen <mclasen@redhat.com>
Fri, 30 Oct 2015 05:21:13 +0000 (01:21 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Fri, 30 Oct 2015 10:16:10 +0000 (06:16 -0400)
Use .popup, which is already in use elsewhere, fits better with
the other button differentiating style classes, and does not
interfere with menus.

gtk/gtkmenubutton.c

index 54f895fe3b4a2dbe1f0d756fc9698aeb62cb8c92..6d546b5be7add178c63da76521d915eee09f764c 100644 (file)
  * # CSS nodes
  *
  * GtkMenuButton has a single CSS node with name button. To differentiate
- * it from a plain #GtkButton, it gets the .menubutton style class.
+ * it from a plain #GtkButton, it gets the .popup style class.
  */
 
 #include "config.h"
@@ -673,7 +673,7 @@ gtk_menu_button_init (GtkMenuButton *menu_button)
   gtk_widget_set_sensitive (GTK_WIDGET (menu_button), FALSE);
 
   context = gtk_widget_get_style_context (GTK_WIDGET (menu_button));
-  gtk_style_context_add_class (context, "menubutton");
+  gtk_style_context_add_class (context, "popup");
 }
 
 /**